package com.qishao.client;

import com.qishao.service_base.reponse.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Title：TestFeign.java
 * @Author：XUSHAOQI
 * @DATE：2021/12/13
 * 测试熔断器 Hystrix
 *
 * fallback 指定皆苦熔断后的处理类
 */
@Component
@FeignClient(value = "oss-service", fallback = TestFeignImpl.class)
public interface TestFeign {

    @PostMapping("/oss/test")
    public Response test();

}
